package com.mysoft.gfyx.marketdevelop.mip.dto.TjMetric;

import com.mysoft.gfyx.marketdevelop.service.dto.metric.IndicatorDto;
import lombok.Data;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

@Data
public class QueryMetricRequestDto {
    public static final int CHART_METRIC = 1;
    public static final int CHART_TREND = 2;
    public static final int CHART_PROPORTION = 3;
    public static final int CHART_DIM = 4;
    public static final int CHART_RANK = 5;

    private String project;
    private Integer chart_type;
    private List<QueryMetricIndicatorRequestDto> indicator_info;
    private QueryMetricConditionRequestDto calculate_condition;

    public QueryMetricRequestDto() {
        indicator_info = new LinkedList<>();
    }

    public void addIndicator(QueryMetricIndicatorRequestDto queryMetricIndicatorRequestDto) {
        indicator_info.add(queryMetricIndicatorRequestDto);
    }
}
